<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class BaseModel extends Model
{
    // 是否
    const YES = 1;//是
    const NO = 0;//否

    // 状态
    const STATUS_ENABLE = 1;//启用
    const STATUS_DISABLE = 0;//禁用

    public static function isMap()
    {
        return [self::YES => '是', self::NO => '否'];
    }

    public static function statusMap()
    {
        return [self::STATUS_DISABLE => '禁用', self::STATUS_ENABLE => '启用'];
    }
}
